﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrderItems.ascx.cs"
    Inherits="MobileShop.Controls.OrderItems" %>
<ul class='menus'>
    <asp:Repeater ID="rpt" runat="server">
        <ItemTemplate>
            <li class='menuitem'>
                <a href='<%# this.ResolveUrl("~/Product.aspx?product=") + MobileShop.Utilities.GetValidParam(Eval("ProductName").ToString()) + "_" + Eval("ProductID").ToString() %>'>
                <div>
                    <div class='itemicon'>
                        <a>
                            <asp:Image Width="64px" ID="Image1" runat="server" AlternateText='<%# Eval("ProductName") %>'
                                ImageUrl='<%# (Eval("ThumbUrl") == DBNull.Value || Eval("ThumbUrl").ToString() == "") ? GetDefaultPic() : MobileShop.Utilities.GetImageUrl((string)Eval("ThumbUrl")) %>' />
                        </a>
                    </div>
                    <div class='itemtitle'>
                            <%# Eval("ProductName") %>
                    </div>
                    <div style='height: 40px; padding-top: 5px;'>
                        <span class='productDetailLabel'>Qty:</span> <span class='normal' style='display: inline-block;
                            width: 50px'>
                            <%#  Eval("Quantity")%>
                        </span><span class='productDetailLabel'>Total Amt:</span> <span class='productprice'
                            style='display: inline-block; width: 70px'>
                            <%# string.Format("{0:C}", Eval("TotalAmount"))%></span>
                    </div>
                </div>
                </a>
            </li>
        </ItemTemplate>
    </asp:Repeater>
</ul>
